package com.ponhu.ea2.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 商品与货品中间关系表
 * @TableName ph_goods_inventory_md
 */
@Data
@Accessors(chain = true)
@TableName(value ="ph_goods_inventory_md")
public class GoodsInventoryMd extends Model<GoodsInventoryMd> {


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 商品表ID
     */
    private Long goodsId;

    /**
     * 货品ID
     */
    private Long inventoryId;

}